import request from '@/utils/request'

// 查询微信用户设备列表
export function listRentUserDevice(query) {
  return request({
    url: '/rent/rentUserDevice/list',
    method: 'get',
    params: query
  })
}

// 查询微信用户设备详细
export function getRentUserDevice(id) {
  return request({
    url: '/rent/rentUserDevice/' + id,
    method: 'get'
  })
}

// 新增微信用户设备
export function addRentUserDevice(data) {
  return request({
    url: '/rent/rentUserDevice',
    method: 'post',
    data: data
  })
}

// 修改微信用户设备
export function updateRentUserDevice(data) {
  return request({
    url: '/rent/rentUserDevice',
    method: 'put',
    data: data
  })
}

// 删除微信用户设备
export function delRentUserDevice(id) {
  return request({
    url: '/rent/rentUserDevice/' + id,
    method: 'delete'
  })
}
